package com.bh.statistics.controller;

import com.bh.statistics.entity.ResultPage;
import com.bh.statistics.entity.TBcast;
import com.bh.statistics.service.BroadcastService;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * BroadcastController
 *
 * @author Ljy
 * @version 2023/09/05 17:05
 **/
@RestController
@RequestMapping("/broadcast")
public class BroadcastController {
    @Resource
    BroadcastService broadcastService;

    @PostMapping("/listData")
    @ResponseBody
    public ResultPage<TBcast> listData(Integer page, Integer limit, TBcast broadcast){
        return broadcastService.getPage(page,limit,broadcast);
    }
}
